namespace GenericsFramework
{
	public static class IntExtensions
	{
		/// <summary>
		/// Corrects an ID by making values &lt; 1 null
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		public static int? CorrectId(this int id)
		{
			return id > 0 ? (int?)id : null;
		}
	}
}